<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/3/23
  Time: 15:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/update" method="post">
    <div>
        <input type="hidden" name="id" readonly value="${model.id}">
        <div>
            品牌名称<input type="text" name="name" placeholder="请输入品牌名称" value="${model.name}">
        </div>
        <div>
            企业名称<input type="text" name="enterprise" value="${model.enterprise}">
        </div>
        <div>
            排序<input type="text" name="sort" value="${model.sort}">
        </div>
        <div>
            介绍<input type="text" name="introduce" value="${model.introduce}">
        </div>
        <div>
            <c:if test="${model.style==1}">
                状态<label><input type="radio" name="style" value="1" checked>启用</label>
                <label> <input type="radio" name="style" value="0">禁用</label>
            </c:if>
            <c:if test="${model.style!=1}">
                状态<label><input type="radio" name="style" value="1" >启用</label>
                <label> <input type="radio" name="style" value="0" checked>禁用</label>
            </c:if>
        </div>
    </div>
    <div><input type="submit" value="提交"></div>
</form>
</body>
</html>
